# count=int(input("请输入一个数值："))
# if count%2==0:
#     print("输入的值为偶数")
# else:
#     print("输入的值是奇数")
# or |
# and &
# year =int(input("请输入一个年份"))
# if year%400==0 or year%4==0 and year%100!=0:
#     print("该年是闰年")
# else:
#     print("该年不是闰年")
# score=int(input("请输入你的成绩"))
# if 90<=score<=100:
#     print("优秀")
# elif 80<=score<90:
#     print("良好")
# elif 70<=score<80:
#     print("一般")
# elif 60<=score<70:
#     print("及格")
# elif score<60:
#     print("不及格")
# else:
#     print("输入错误")
'''if嵌套使用
'''
monkey=int(input("输入花销金额："))
answer=input("请问您有会员卡吗，输入Y/N :")
if answer=='Y':
    if monkey>=200:
        monkey=monkey*0.8
    elif monkey>=100:
        monkey=monkey*0.9
else:
    if monkey>=200:
        monkey=monkey*0.95
print("您需要付款：",monkey)